package cz.vargarob.spring.service;

import org.apache.commons.logging.Log;
import org.springframework.beans.factory.annotation.Autowired;

import cz.vargarob.spring.repository.AccountRepository;
import cz.vargarob.spring.test.PropertiesTestBean;

public class TransferServiceImpl implements TransferService {
	
	private AccountRepository accountRepo;
	public static Log myLog = null;
	
	public TransferServiceImpl(){
	}
	
	public TransferServiceImpl(AccountRepository accountRepo, Log myLog) {
		super();
		this.accountRepo = accountRepo;
		TransferServiceImpl.myLog = myLog;
	}
	
	public String getName(){
		return accountRepo.getAccountName();
	}

	public AccountRepository getAccountRepo() {
		return accountRepo;
	}

	public void setAccountRepo(AccountRepository accountRepo) {
		this.accountRepo = accountRepo;
	}

	public static Log getMyLog() {
		return myLog;
	}

	public static void setMyLog(Log myLog) {
		TransferServiceImpl.myLog = myLog;
	}

}
